<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Session;

class Email extends Controller
{
	public function send_email(){
		$email = $_POST['email'];
		$info = Db::table('tp_user')->where(array('email'=>$email))->count();
		if($info == 0){
			echo "1";
			vendor("aliyun.email");
		}else{
			echo "-1";
		}
	}
	public function test(){
	    file_put_contents(RUNTIME_PATH.'notify.txt','这里是支付宝支付异步通知地址');
    }
}
